-- GENERATED SPELL FOR [Maraudine Windchaser] --


function spell0_4657(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4657', 12000, 1)
end

function spell1_4657(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(11986,pUnit)
pUnit:RegisterEvent('Sorts_4657', 3000, 1)
end

function spell2_4657(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4657', 3000, 1)
end

function Sorts_4657(pUnit, Event)
local choix_sorts_4657 = math.random(0, 2)
if choix_sorts_4657 == 0 then
pUnit:RegisterEvent('spell0_4657', 1, 1)
end
if choix_sorts_4657 == 1 then
pUnit:RegisterEvent('spell1_4657', 1, 1)
end
if choix_sorts_4657 == 2 then
pUnit:RegisterEvent('spell2_4657', 1, 1)
end
end

function mob4657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4657', math.random(1500, 3000), 1)
end

function mob4657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4657, 1, 'mob4657_Action')
RegisterUnitEvent(4657, 2, 'mob4657_Leave')
RegisterUnitEvent(4657, 3, 'mob4657_Kill')
RegisterUnitEvent(4657, 4, 'mob4657_Die')
